package com.xzy.springcloud.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 自定义通用前端交互类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
    private Integer code;
    private  String massage;
    private T date;


    public CommonResult(Integer code,String massage){

        this.code = code;
        this.massage=massage;
        this.date=null;

    }
}
